package com.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.to.rabbit.SekcillOrderTo;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.order.entity.OrderEntity;
import com.gulimall.order.vo.OrderConfirmVo;
import com.gulimall.order.vo.OrderSubmitResponseVo;
import com.gulimall.order.vo.OrderSubmitVo;
import com.gulimall.order.vo.PayVo;

import java.util.Map;

/**
 * 订单
 *
 * @author kkk
 * @email 2017809755@qq.com
 * @date 2022-05-17 22:10:18
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    OrderSubmitResponseVo submitOrder(OrderSubmitVo orderSubmitVo);

    void orderClose(OrderEntity order);

    PayVo getOrderInfo(String orderSn);

    PageUtils getOrderList(Map<String, Object> params);

    void saveSeckillOrder(SekcillOrderTo sekcillOrderTo);
}

